Post

Replies

Boosts

Views

Activity

Reply to Linking arm64 static library for iPhoneSimulator
As far as I know you cannot use the same library for arm64 iPhone and iPhone Simulator and instead you have to link each one based on the platform you're building. The best way I've found to do this is using the Other Linker Flags and then add an option for "Any iOS Simulator SDK" and "Any iOS SDK." Then you use -lname_of_library to specify if you want to use an iPhone version or an iPhone Simulator version. I use a .xcconfig file to accomplish this. Here's a working example of linking to fmod for either simulator or device: OTHER_LD_FLAGS_SIMULATOR = $(DEFAULT_OTHER_LD_FLAGS) -lfmodL_iphonesimulator OTHER_LD_FLAGS_DEVICE = $(DEFAULT_OTHER_LD_FLAGS) -lfmodL_iphoneos OTHER_LD_FLAGS = $(DEFAULT_OTHER_LD_FLAGS) OTHER_LD_FLAGS[sdk=iphoneos*] = $(OTHER_LD_FLAGS_DEVICE) OTHER_LD_FLAGS[sdk=iphonesimulator*] = $(OTHER_LD_FLAGS_SIMULATOR) Hope this helps. References: https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project
Mar ’25
Reply to macOS Gatekeeper gatekeeping text files?
Thank you. We did manually remove the extended attribute but these were .json files and only contained data. Eventually I was able to poke IT enough and they found there were settings in there managed profiles from Jamf that were too eager to quarantine these files from git. Hopefully the problem will not reoccur after they adjusted the policy.
Topic: Privacy & Security SubTopic: General Tags:
Feb ’25
Reply to XCode 15.0 Feature dropped?
Define _LIBCPP_ENABLE_EXPERIMENTAL and you should get it. See <__ranges/join_view.h> for the explanation: // Note: `join_view` is still marked experimental because there is an ABI-breaking change that affects `join_view` in // the pipeline (https://isocpp.org/files/papers/D2770R0.html). // TODO: make `join_view` non-experimental once D2770 is implemented. #if _LIBCPP_STD_VER >= 20 && defined(_LIBCPP_ENABLE_EXPERIMENTAL) Funnily enough, the URL in the header file appears to be incorrect, but P2770R0 https://isocpp.org/files/papers/P2770R0.html correct.
Topic: Programming Languages SubTopic: General Tags:
Jun ’24